#include "Exit.h"

#include "Room.h"

// Ctor
Exit::Exit(Room& _oStartRoom, Room& _oEndRoom)
: Link(_oStartRoom, _oEndRoom)
{
	_oStartRoom.addInExit(*this);
	_oStartRoom.addOutExit(*this);
}

const Room &Exit::getStartRoom() const
{
	return this->getStartNode();
}

const Room &Exit::getEndRoom() const
{
	return this->getEndNode();
}